package StudyCode.summary.Basic.stringbuffer;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class StringBufferDelete {
	public static void main(String[] args) {
		StringBuffer sb1 = new StringBuffer("Hello World");
		System.out.println("删除前:" + sb1);
		sb1.delete(0, 6);
		System.out.println("删除后:" + sb1);

		StringBuffer sb2 = new StringBuffer("Some Content");
		System.out.println("删除前:" + sb2);
		sb2.delete(0, sb2.length());
		System.out.println("删除后:" + sb2);

		StringBuffer sb3 = new StringBuffer("Hello World");
		System.out.println("删除前:" + sb3);
		sb3.deleteCharAt(0);
		System.out.println("删除后:" + sb3);
	}
}
